home *** CD-ROM | disk | FTP | other *** search
- Path: bright.ecs.soton.ac.uk!mat92
- From: mat92@ecs.soton.ac.uk (Mark Tranchant)
- Newsgroups: comp.lang.c,comp.os.msdos.programmer,comp.sys.ibm.pc.hardware.video,comp.sys.ibm.pc.hardware.misc,comp.sys.ibm.pc.misc
- Subject: Re: malloc'ing 1.5MB of memory
- Date: 16 Jan 1996 13:02:28 GMT
- Organization: Electronics and Computer Science, University of Southampton
- Message-ID: <4dg7l4$n1h@bright.ecs.soton.ac.uk>
- References: <4culvu$612@stc06.ctd.ornl.gov> <DL0HqJ.7H4@rug.nl>
- NNTP-Posting-Host: life.ecs.soton.ac.uk
- X-Newsreader: NN version 6.5.0
-
- In <DL0HqJ.7H4@rug.nl> Herman Dullink <csg669@wing.rug.nl> writes:
-
- >forrest@esdhof.esd.ornl.gov (Forrest M. Hoffman) wrote:
- >>Can anyone tell me how to grab a 1.5 MB chunk of PC memory? I've got a
- >>VideoBlaster card and some C code they gave me. But I want to use the
- >>full screen (800x600) at 24 bit color. This means I have to have this
- >>much space to have the routine dump the data into. The machine I'm
- >>using is a 486 with 16MB of memory. This must be a DOS limitation?
- >>I'm using MS C 6.0 and calling halloc();
- >It's probably the limitation of MS C's halloc().
-
- >>Any suggestions?
-
-
- Use linux instead. Free compiler (gcc), free OS, fully 32-bit.
- ptr = malloc(1572864).
-
- It is heaven after DOS programming - the only disadvantage is the lack of a
- nice, user-friendly IDE.
-
- Learning the SVGAlib routines would be a bit of a sod, however: unless you
- are directly driving the hardware.
-
- Mark.
-
-